package com.mobileagri.backoffice.model;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonAutoDetect;

/**
 * Contact POJO
 * 
 * 
 * @author LOUVET Romain
 */
@JsonAutoDetect
@Entity
@Table(name = "utilisateurs")
public class Utilisateur extends AbstractObject {

	// Textes complets login pass privilege id_user option_prix xmlPac old_login
	// date_ajout_bd

	@Id
	@GeneratedValue
	@Column(name = "id_user")
	private int id;

	@Column(name = "login")
	private String login;

	@Column(name = "pass")
	private String pass;

	@Column(name = "privilege")
	private int privilege;

	@Column(name = "option_prix")
	private Boolean option_prix;

	@Column(name = "old_login")
	private String old_login;

	@Column(name = "date_ajout_bd")
	private Date date_ajout_bd;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public int getPrivilege() {
		return privilege;
	}

	public void setPrivilege(int privilege) {
		this.privilege = privilege;
	}

	public Boolean getOption_prix() {
		return option_prix;
	}

	public void setOption_prix(Boolean option_prix) {
		this.option_prix = option_prix;
	}

	public String getOld_login() {
		return old_login;
	}

	public void setOld_login(String old_login) {
		this.old_login = old_login;
	}

	public Date getDate_ajout_bd() {
		return date_ajout_bd;
	}

	public void setDate_ajout_bd(Date date_ajout_bd) {
		this.date_ajout_bd = date_ajout_bd;
	}

}
